﻿namespace EFS.RC.CCAdmin.Offices
{
	public partial class New : EFS.RC.CCAdmin.Common.Control
	{
		public New()
		{
			InitializeComponent();

			//listener for create
			UtilitiesService.OfficeEndPoint_CreateCompleted += new System.EventHandler<WebProxy.OfficeEndPoint_CreateCompletedEventArgs>(UtilitiesService_OfficeEndPoint_CreateCompleted);
		}

		void UtilitiesService_OfficeEndPoint_CreateCompleted(object sender, WebProxy.OfficeEndPoint_CreateCompletedEventArgs e)
		{
			//check if request was successful
			if (null != e.Error)
			{
				ShowErrorMessage("Unable to Add Office. ", e.Error);
			}
		}
	}
}
